import Home from "../pages/Home"
import Login from "../pages/Login"
import More from "../pages/More"

import Main from "../pages/Home/Main"
import Archive from "../pages/Home/Archive"
import Monthly from "../pages/Home/Monthly"
import Complaints from "../pages/Home/Complaints"
import My from "../pages/Home/My"

const footerRoutes=[{
    path:'/home/main',
    name:'首页',
    element:<Main/>
},{
    path:'/home/archive',
    name:'品质档案',
    element:<Archive/>
},{
    path:'/home/monthly',
    name:'电子月刊',
    element:<Monthly/>
},{
    path:'/home/complaints',
    name:'投诉维权',
    element:<Complaints/>
},{
    path:'/home/my',
    name:'我',
    element:<My/>
},]


const routes=[{
    path:'/home',
    element:<Home/>,
    children:footerRoutes
},{
    path:'/login',
    element:<Login/>
},{
    path:'/more',
    element:<More/>
},{
    from:'/',
    to:'/home/main'
}]

export {
    footerRoutes,
    routes
}